﻿using ICSharpCode.SharpZipLib.Zip;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DllCallAnalysis45.Helpers
{
    public static class ZipHelper
    {
        public static bool UnzipOneFile(string zip, string fileName, string unzipPath)
        {
            FastZip fastZip = new FastZip();
            fastZip.ExtractZip(zip, unzipPath, fileName);

            return true;
        }

        public static bool UnzipFile(string zip, string unzipPath)
        {
            FastZip fastZip = new FastZip();
            fastZip.ExtractZip(zip, unzipPath, null);

            return true;
        }
    }
}
